package client.comm.baoding.api.bean

import android.os.Parcelable
import kotlinx.android.parcel.Parcelize

/**
 * Date: 2022/11/3 17:56
 * Description: 交易商品详情
 */
data class GoodsDetailTrade(
    val goods_info: GoodsInfo,
    val user_assets: UserAssets,
    val order_list: List<Order>
) {
    data class GoodsInfo(
        val goods_id: String,
        val name: String,
        val price: String,
        val special_price: String,
        val goods_img: String,
        val sku: String,
        val stock_c: String,
        val integral: Double,
        val banner_list: List<GoodsDetail.Banner>,
        val detail_list: List<GoodsDetail.Detail>,
        val goods_label: List<String>
//        val price_tj: String,
//        val store_id: String,
    )

    data class UserAssets(
        val coupon_num: String,
        val take_num: String,
        val sell_num: String,
        val s_sell_num: String, //可交易
        val s_frozen_num: String, //待释放
        val dj_num: String,
        val user_status: Int,
        val income: String
    )

    data class Order(
        val id: String,
        val phone: String,
        val num: Int,
    ) {
        @Parcelize
        data class Banner(
            val goods_id: Int,
            val create_time: String,
            val goods_img: String,
            val priority: Int
        ) : Parcelable

        @Parcelize
        data class Detail(
            val goods_id: Int,
            val create_time: String,
            val goods_img: String,
            val priority: Int
        ) : Parcelable
    }
}

